package com.lanmaoly.web.server.dao;

import com.github.pagehelper.Page;
import com.lanmaoly.web.server.pojo.TbAddress;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TbAddressMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TbAddress record);

    int insertSelective(TbAddress record);

    TbAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbAddress record);

    int updateByPrimaryKey(TbAddress record);

    List<TbAddress> findListByUserId(String userId);

    List<TbAddress> findAll();

    Page<TbAddress> findPage(TbAddress tbAddress);

    void updateDefaultIsNot(String userId);
}